﻿using System.Configuration;

namespace OneWorks.Common.AdoNet.Configuration
{
    public class DbProviderElement : ConfigurationElement
    {
        [ConfigurationProperty("key", IsKey = true, IsRequired = true)]
        public string Key
        {
            get
            {
                return base["key"].ToString();
            }
        }

        [ConfigurationProperty("type", IsRequired = true)]
        public DbProviderType Type
        {
            get
            {
                return (DbProviderType)base["type"];
            }
        }

        [ConfigurationProperty("value")]
        public string Value
        {
            get
            {
                return base["value"].ToString();
            }
        }
    }
}
